<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: luanzg <782114271@qq.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\middleware\Admin;

Route::group(function () {

    // 节目单频道添加日期单，相关api
    Route::get('Advpgmlist/channelgroup', 'channelgroup');
    Route::post('Advpgmlist/channelgroup', 'channelgroupAdd');
    Route::put('Advpgmlist/channelgroup', 'channelgroupEdit');
    Route::delete('Advpgmlist/channelgroup', 'channelgroupDel');

    // 节目单编单添加日期单详情，相关api
    Route::get('Advpgmlist/advpgmgroup', 'advpgmgroupList');
    Route::post('Advpgmlist/advpgmgroup', 'advpgmgroupAdd');
    Route::put('Advpgmlist/advpgmgroup', 'advpgmgroupEdit');
    Route::delete('Advpgmlist/advpgmgroup', 'advpgmgroupDel');

    // 按频道获取节目时段列表
    Route::get('Advpgmlist/getadvseqlist', 'getAdvSeqList');
    Route::post('Advpgmlist/getOtherAdvList', 'getotheradvlist');
    Route::post('Advpgmlist/getOtherAdvSeq', 'getotheradvseq');

    // 节目时段日期单审核
    Route::post('Advpgmlist/reviewAdvSeq', 'reviewadvseq');

    // 节目单素材内容操作
    Route::post('Advpgmlist/copyAdvpgm', 'copyadvpgm');
    Route::post('Advpgmlist/TotalAdvpgm', 'totaladvpgm');
    Route::post('Advpgmlist/delMoreAdvpgm', 'delmoreadvpgm');


})->prefix('Advpgmlist/')->allowCrossDomain(headers())->middleware(Admin::class);
